﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Harmontronics.Repository.Migrations
{
    public partial class _202403211037 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "recipeTypeId",
                table: "RecipeConfigs",
                type: "longtext",
                nullable: false)
                .Annotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.CreateTable(
                name: "RecipeTypes",
                columns: table => new
                {
                    recipeTypeId = table.Column<string>(type: "varchar(255)", nullable: false)
                        .Annotation("MySql:CharSet", "utf8mb4"),
                    recipeTypeName = table.Column<string>(type: "longtext", nullable: false)
                        .Annotation("MySql:CharSet", "utf8mb4")
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RecipeTypes", x => x.recipeTypeId);
                })
                .Annotation("MySql:CharSet", "utf8mb4");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "RecipeTypes");

            migrationBuilder.DropColumn(
                name: "recipeTypeId",
                table: "RecipeConfigs");
        }
    }
}
